import axios from 'axios'
function verify_phone(phone) {
    return axios({
        url: '/regist/verify_phone',
        method: 'post',
        data: {
            phone,
        }
    })
}

function verify_code(phone,code) {
    return axios({
        url: '/regist/verify_code',
        method: 'post',
        data: {
            phone,
            code
        }
    })
}

function registeUser(phone,password) {
    return axios({
        url: '/regist/user',
        method: 'post',
        data: {
            phone,
            password
        }
    })
}


export { verify_phone,verify_code,registeUser}
